package com.wxzz.elearing.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxzz.elearing.user.entity.AdminPermissionDisabled;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 权限禁用表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2021-03-11
 */
public interface AdminPermissionDisabledMapper extends BaseMapper<AdminPermissionDisabled> {

    @Select("SELECT admin_permission_id FROM `admin_permission_disabled` WHERE enterprise_id = #{enterpriseId} AND deleted = 0")
    List<Long> selectAdminPermissionDisabledByEnterpriseId(@Param("enterpriseId") Long enterpriseId);

}
